package com.zxsc.zxmusic.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.zxsc.zxmusic.utils.NotificationUtils;


public class NotificationRecevier extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        switch (intent.getAction()) {
            case "play_update":
                NotificationUtils.update(context);
                break;
            case "close":
                context.sendBroadcast(new Intent("stopService"));
                break;
                
            case "next":
            	context.sendBroadcast(new Intent("nextMusic"));
            	break;
            	
            case "play":
            	context.sendBroadcast(new Intent("playMusic"));
            	break;
            	
            case "previous":
            	context.sendBroadcast(new Intent("previousMusic"));
            	break;
        }
    }

}
